﻿using System.Collections.Generic;

namespace Inscriptionem.Models.Blog.Base
{
    public abstract class BaseViewModel : BaseRequestModel
    {
        protected BaseViewModel()
        {
            Pagination = new PaginationModel();
        }

        #region Collections

        public abstract IEnumerable<ORM.Category> Categories { get; }

        public abstract IEnumerable<ORM.Page> Pages { get; }

        public abstract IEnumerable<ORM.Tag> Tags { get; }

        #endregion

        #region Pagination
        public class PaginationModel
        {
            public int CurrentPage { get; set; }
            public int TotalPages { get; set; }
        }
        public PaginationModel Pagination { get; set; }
        #endregion
    }
}